package com.linxz.ui.divider;

/**
 * @author Linxz
 *         time:2018年08月08日 15:18.
 */

public class DividerLookupImpl implements DividerItemDecoration.DividerLookup {

    private final int COLOR;
    private final int SIZE;

    public DividerLookupImpl(int color, int size) {
        this.COLOR = color;
        this.SIZE = size;
    }

    @Override
    public Divider getVerticalDivider(int position) {
        return new Divider.Builder()
            .size(SIZE)
            .color(COLOR)
            .build();
    }

    @Override
    public Divider getHorizontalDivider(int position) {
        return new Divider.Builder()
            .size(SIZE)
            .color(COLOR)
            .build();
    }
}
